//index.js
//获取应用实例

Page({
  data: {
    isLogOut:true,
    order:[
      {
        path:"../../assets/img/mine/mony.png",
        title:"未消费"
      },
      {
        path:"../../assets/img/mine/pay.png",
        title:"待付款"
      },
      {
        path:"../../assets/img/mine/evaluate.png",
        title:"待评价"
      },
      {
        path:"../../assets/img/mine/refund.png",
        title:"退款"
      }
    ]
  },
  //事件处理函数
  onShow: function () {
    if(wx.getStorageSync('token')){
      this.setData({
        isLogOut:false
      })
    }else{
      this.setData({
        isLogOut:true
      })
    }
  },
})
